package com.anzhen.interview.sort;

import com.alibaba.fastjson.JSON;
import org.apache.commons.lang3.RandomUtils;

import java.util.ArrayList;
import java.util.List;

public class SortClass {
    public static void main(String[] args) {
        List<Order> orderList = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            Order order = new Order();
            order.setId(i);
            ArrayList<Record> recordList = new ArrayList<>();
            for (int j = 0; j < 3; j++) {
                recordList.add(new Record(j, RandomUtils.nextInt(0, 10)));
            }
            order.setRecords(recordList);
            orderList.add(order);
        }
        System.out.println(JSON.toJSONString(orderList));
    }
}
